<?php
// +----------------------------------------------------------------------
// | 跃飞 [ 将来的你一定会感激现在奋斗的自己 ]
// +----------------------------------------------------------------------
// | Author: 钟贵廷
// +----------------------------------------------------------------------
// | Author URI: https://git.oschina.net/yeafy
// +----------------------------------------------------------------------
// | weChat:gt845272922  qq:845272922
// +----------------------------------------------------------------------


namespace app\yeafy\observer\demo2;


interface ISubject
{
    /**
     * 描述:注册观察者
     * @author 钟贵廷
     * @WeChat gt845272922
     * @qq 845272922
     * @return mixed
     */
    public function registerObserver(IObserver $observer);

    /**
     * 描述:删除观察者
     * @author 钟贵廷
     * @WeChat gt845272922
     * @qq 845272922
     * @return mixed
     */
    public function removeObserver(IObserver $observer);

    /**
     * 描述:通知观察者
     * @author 钟贵廷
     * @WeChat gt845272922
     * @qq 845272922
     * @return mixed
     */
    public function notifyObserver();
}